// ignore_for_file: file_names

import 'package:flutter/material.dart';

class MyApp6 extends StatelessWidget {
  const MyApp6({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
        // 1.1 导航
        appBar: AppBar(
          title: const Text('Image组件'),
          backgroundColor: Colors.pink,
        ),
        // 1.2 主体内容
        body: Container(
          width: 300,
          height: 300,
          alignment: Alignment.center,
          color: Colors.blue,
          child: Image.asset(
            'open_eyes.png',
            // width: 200,
            // height: 400,
            // fit: BoxFit.contain,
            // 背景颜色
            // color: Colors.yellow,
          ),
        ));
  }
}
